﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;


namespace LogForParameter.Model
{
    ///<summary>
    ///
    ///</summary>
    [SugarTable( "PATIENT_INPATIENTINFO", "wmblog_oracle")]
    public class PATIENT_INPATIENTINFO
    {
           public PATIENT_INPATIENTINFO()
           {
           }
           /// <summary>
           /// Desc:住院流水号
           /// Default:
           /// Nullable:False
           /// </summary>
           [SugarColumn(IsPrimaryKey=true)]
           public string PATIENTSN { get; set; }
           /// <summary>
           /// Desc:住院号
           /// Default:
           /// Nullable:True
           /// </summary>
           public string PATIENTID { get; set; }
           /// <summary>
           /// Desc:患者姓名
           /// Default:
           /// Nullable:True
           /// </summary>
           public string PATIENTNAME { get; set; }
           /// <summary>
           /// Desc:性别
           /// Default:
           /// Nullable:True
           /// </summary>
           public string SEX { get; set; }
           /// <summary>
           /// Desc:年龄
           /// Default:
           /// Nullable:True
           /// </summary>
           public string AGE { get; set; }
           /// <summary>
           /// Desc:婚姻状况
           /// Default:
           /// Nullable:True
           /// </summary>
           public string MARRIAGESTATUS { get; set; }
           /// <summary>
           /// Desc:费用类型
           /// Default:
           /// Nullable:True
           /// </summary>
           public string FEETYPE { get; set; }
           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>
           public string FEETYPEITEM { get; set; }
           /// <summary>
           /// Desc:入院次数
           /// Default:
           /// Nullable:True
           /// </summary>
           public decimal? ADMISSIONTIMES { get; set; }
           /// <summary>
           /// Desc:暂留字段
           /// Default:
           /// Nullable:True
           /// </summary>
           public string ADMISSIONNO { get; set; }
           /// <summary>
           /// Desc:入院时间
           /// Default:
           /// Nullable:True
           /// </summary>
           public DateTime? ADMISSIONREGISTERTIME { get; set; }
           /// <summary>
           /// Desc:入院方式
           /// Default:
           /// Nullable:True
           /// </summary>
           public string ADMISSIONWAY { get; set; }
           /// <summary>
           /// Desc:入院医院
           /// Default:
           /// Nullable:True
           /// </summary>
           public string ADMISSIONHOSPITAL { get; set; }
           /// <summary>
           /// Desc:入院科室名称
           /// Default:
           /// Nullable:True
           /// </summary>
           public string ADMISSIONDEPARTMENT { get; set; }
           /// <summary>
           /// Desc:入院科室id
           /// Default:
           /// Nullable:True
           /// </summary>
           public string ADMISSIONDEPARTMENTID { get; set; }
           /// <summary>
           /// Desc:当前医院
           /// Default:
           /// Nullable:True
           /// </summary>
           public string CURRENTHOSPITAL { get; set; }
           /// <summary>
           /// Desc:当前病区
           /// Default:
           /// Nullable:True
           /// </summary>
           public string CURRENTDEPARTMENT { get; set; }
           /// <summary>
           /// Desc:当前科室id
           /// Default:
           /// Nullable:True
           /// </summary>
           public string CURRENTDEPARTMENTID { get; set; }
           /// <summary>
           /// Desc:出院时间
           /// Default:
           /// Nullable:True
           /// </summary>
           public DateTime? LEAVEHOSPITALTIME { get; set; }
           /// <summary>
           /// Desc:出院方式
           /// Default:
           /// Nullable:True
           /// </summary>
           public string LEAVEHOSPITALWAY { get; set; }
           /// <summary>
           /// Desc:床号
           /// Default:
           /// Nullable:True
           /// </summary>
           public string BEDNO { get; set; }
           /// <summary>
           /// Desc:床费用类型
           /// Default:
           /// Nullable:True
           /// </summary>
           public string BEDFEETYPE { get; set; }
           /// <summary>
           /// Desc:病情
           /// Default:
           /// Nullable:True
           /// </summary>
           public string PATIENTCONDITION { get; set; }
           /// <summary>
           /// Desc:管床医生
           /// Default:
           /// Nullable:True
           /// </summary>
           public string DOCTOR { get; set; }
           /// <summary>
           /// Desc:管床医生工号
           /// Default:
           /// Nullable:True
           /// </summary>
           public string DOCTORID { get; set; }
           /// <summary>
           /// Desc:诊疗组
           /// Default:
           /// Nullable:True
           /// </summary>
           public string MEDICALGROUP { get; set; }
           /// <summary>
           /// Desc:诊疗组value值
           /// Default:
           /// Nullable:True
           /// </summary>
           public string MEDICALGROUPITEM { get; set; }
           /// <summary>
           /// Desc:管床护士
           /// Default:
           /// Nullable:True
           /// </summary>
           public string NURSE { get; set; }
           /// <summary>
           /// Desc:管床护士工号
           /// Default:
           /// Nullable:True
           /// </summary>
           public string NURSEID { get; set; }
           /// <summary>
           /// Desc:护理级别
           /// Default:
           /// Nullable:True
           /// </summary>
           public string NURSINGLEVEL { get; set; }
           /// <summary>
           /// Desc:护理组
           /// Default:
           /// Nullable:True
           /// </summary>
           public string NURSINGGROUP { get; set; }
           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>
           public string NURSINGGROUPITEM { get; set; }
           /// <summary>
           /// Desc:住院状态 0入院（待入科） 1在科 2出科（待入科）3待出院 4出院 5结算 6退院 99注销
           /// Default:
           /// Nullable:True
           /// </summary>
           public string HOSPITALIZEDSTATUS { get; set; }
           /// <summary>
           /// Desc:病历状态 空表示正常 1待归档 2归档
           /// Default:
           /// Nullable:True
           /// </summary>
           public string MEDICALRECORDSTATUS { get; set; }
           /// <summary>
           /// Desc:归档时间
           /// Default:
           /// Nullable:True
           /// </summary>
           public DateTime? ARCHIVETIME { get; set; }
           /// <summary>
           /// Desc:归档操作人
           /// Default:
           /// Nullable:True
           /// </summary>
           public string ARCHIVEOPERATOR { get; set; }
           /// <summary>
           /// Desc:归档操作人id
           /// Default:
           /// Nullable:True
           /// </summary>
           public string ARCHIVEOPERATORID { get; set; }
           /// <summary>
           /// Desc:膳食
           /// Default:
           /// Nullable:True
           /// </summary>
           public string PATIENTMEAL { get; set; }
           /// <summary>
           /// Desc:主要诊断
           /// Default:
           /// Nullable:True
           /// </summary>
           public string CHIEFDIAGNOSIS { get; set; }
           /// <summary>
           /// Desc:主要诊断value
           /// Default:
           /// Nullable:True
           /// </summary>
           public string CHIEFDIAGNOSISITEM { get; set; }
           /// <summary>
           /// Desc:锁定状态 1表示锁定 0表示正常
           /// Default:
           /// Nullable:True
           /// </summary>
           public string LOCKSTATUS { get; set; }
           /// <summary>
           /// Desc:主任医生
           /// Default:
           /// Nullable:True
           /// </summary>
           public string DIRECTORDOCTOR { get; set; }
           /// <summary>
           /// Desc:主任医生工号
           /// Default:
           /// Nullable:True
           /// </summary>
           public string DIRECTORDOCTORID { get; set; }
           /// <summary>
           /// Desc:主治医生
           /// Default:
           /// Nullable:True
           /// </summary>
           public string ATTENDINGDOCTOR { get; set; }
           /// <summary>
           /// Desc:主治医生工号
           /// Default:
           /// Nullable:True
           /// </summary>
           public string ATTENDINGDOCTORID { get; set; }
           /// <summary>
           /// Desc:质控护士
           /// Default:
           /// Nullable:True
           /// </summary>
           public string CONTROLNURSE { get; set; }
           /// <summary>
           /// Desc:质控护士工号
           /// Default:
           /// Nullable:True
           /// </summary>
           public string CONTROLNURSEID { get; set; }
           /// <summary>
           /// Desc:是否是小孩
           /// Default:
           /// Nullable:True
           /// </summary>
           public string ISCHILD { get; set; }
           /// <summary>
           /// Desc:母亲住院流水号
           /// Default:
           /// Nullable:True
           /// </summary>
           public string MOTHERPATIENTSN { get; set; }
           /// <summary>
           /// Desc:是否是会诊病人（存科室代码，表示是哪个科室的会诊病人，空表示不是会诊病人）
           /// Default:
           /// Nullable:True
           /// </summary>
           public string ISCON { get; set; }
           /// <summary>
           /// Desc:入科确认时间
           /// Default:
           /// Nullable:True
           /// </summary>
           public DateTime? INTODEPARTMENTTIME { get; set; }
           /// <summary>
           /// Desc:质控医生
           /// Default:
           /// Nullable:True
           /// </summary>
           public string CONTROLDOCTOR { get; set; }
           /// <summary>
           /// Desc:质控医生工号
           /// Default:
           /// Nullable:True
           /// </summary>
           public string CONTROLDOCTORID { get; set; }
           /// <summary>
           /// Desc:在院协议
           /// Default:
           /// Nullable:True
           /// </summary>
           public string AGREEMENT { get; set; }
           /// <summary>
           /// Desc:入科确认操作者工号
           /// Default:
           /// Nullable:True
           /// </summary>
           public string CONFIRMER { get; set; }
           /// <summary>
           /// Desc:住院天数
           /// Default:
           /// Nullable:True
           /// </summary>
           public long? INPATIENT_DAYS { get; set; }
           /// <summary>
           /// Desc:1表示死亡，空表示正常
           /// Default:
           /// Nullable:True
           /// </summary>
           public string DEATH_BJ { get; set; }
           /// <summary>
           /// Desc:死亡时间
           /// Default:
           /// Nullable:True
           /// </summary>
           public DateTime? DEATH_TIME { get; set; }
           /// <summary>
           /// Desc:医保卡号
           /// Default:
           /// Nullable:True
           /// </summary>
           public string MED_INSURANCE_NUMBER { get; set; }
           /// <summary>
           /// Desc:就诊号码
           /// Default:
           /// Nullable:True
           /// </summary>
           public string VISIT_SN { get; set; }
           /// <summary>
           /// Desc:建议
           /// Default:
           /// Nullable:True
           /// </summary>
           public string PROPOSAL { get; set; }
           /// <summary>
           /// Desc:是否中途结算（1表示是，0表示不是）
           /// Default:
           /// Nullable:True
           /// </summary>
           public short? MIDWAY_SETTLEMENT { get; set; }
           /// <summary>
           /// Desc:复核人工号
           /// Default:
           /// Nullable:True
           /// </summary>
           public string REVIEW_ID { get; set; }
           /// <summary>
           /// Desc:结算人工号
           /// Default:
           /// Nullable:True
           /// </summary>
           public string SETTLEMENT_ID { get; set; }
           /// <summary>
           /// Desc:1表示病案首页已归档，null表示未归档
           /// Default:
           /// Nullable:True
           /// </summary>
           public short? HOME_PAGE_STATE { get; set; }
           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>
           public string DBLB { get; set; }
           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>
           public string YFLB { get; set; }
           /// <summary>
           /// Desc:感染日期
           /// Default:
           /// Nullable:True
           /// </summary>
           public DateTime? GRRQ { get; set; }
           /// <summary>
           /// Desc:按drg ：1；按床日：5
           /// Default:
           /// Nullable:True
           /// </summary>
           public short? JSLX { get; set; }
           /// <summary>
           /// Desc:是否首发：1表示首发；0表示非首发
           /// Default:
           /// Nullable:True
           /// </summary>
           public short? SCFB { get; set; }
           /// <summary>
           /// Desc:当前科室名称
           /// Default:
           /// Nullable:True
           /// </summary>
           public string CURRENTWARDNAME { get; set; }
           /// <summary>
           /// Desc:入院病区名称
           /// Default:
           /// Nullable:True
           /// </summary>
           public string ADMISSIONWARDNAME { get; set; }
           /// <summary>
           /// Desc:主体类型
           /// Default:
           /// Nullable:True
           /// </summary>
           public string ZTLX { get; set; }
           /// <summary>
           /// Desc:送诊主体
           /// Default:
           /// Nullable:True
           /// </summary>
           public string SZZT { get; set; }
           /// <summary>
           /// Desc:送诊主体联系人
           /// Default:
           /// Nullable:True
           /// </summary>
           public string SZZTLXR { get; set; }
           /// <summary>
           /// Desc:送诊主体联系人电话
           /// Default:
           /// Nullable:True
           /// </summary>
           public string SZZTLXDH { get; set; }
           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>
           public string BLZK_LOCK { get; set; }
           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>
           public string LCLJ_LOCK { get; set; }
           /// <summary>
           /// Desc:人员类别
           /// Default:
           /// Nullable:True
           /// </summary>
           public string RYLB { get; set; }
           /// <summary>
           /// Desc:义乌需求医嘱变更打印记录上一次打印时间
           /// Default:
           /// Nullable:True
           /// </summary>
           public DateTime? ORDERCHARGE_PRINTTIME { get; set; }
           /// <summary>
           /// Desc:高危标识ID
           /// Default:
           /// Nullable:True
           /// </summary>
           public string GWBS { get; set; }
    }
}